
#执行输出目录
MESSAGE(STATUS "path  is :" ${PROJECT_BINARY_DIR})
#执行文件输出路径
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})


find_package(Protobuf)
if (PROTOBUF_FOUND)
    message(STATUS "found protobuf")
endif ()

INCLUDE_DIRECTORIES(
        ${PROJECT_SOURCE_DIR}/inlcude
)
# lib project
LINK_DIRECTORIES(
        ${PROJECT_SOURCE_DIR}/lib
)



add_executable(netty_discard_client DiscardClient.cpp)
target_link_libraries(netty_discard_client  muduo_base muduo_net pthread rt)

add_executable(netty_discard_server DiscardServer.cpp)
target_link_libraries(netty_discard_server muduo_base muduo_net pthread rt)

add_executable(client NetClient.cpp MyTime.cpp)
target_link_libraries(client muduo_base muduo_net pthread rt)
